package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class ProjectServerRelate implements java.io.Serializable {

  public ProjectServerRelate() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long middleWareId;

  /** Attribute middleWareId Be Seted Falg */
  private boolean middleWareIdSetted = false;

  /** Attribute middleWareId is Null Falg */
  private boolean middleWareIdNull = false;

  /**
   * Get middleWareId
   *
   * @return long
   */
  public final long getMiddleWareId() {

    return middleWareId;
  }

  /**
   * Set middleWareId
   *
   * @param long
   */
  public final void setMiddleWareId(long middleWareId) {

    this.middleWareId = middleWareId;

    this.middleWareIdSetted = true;

    this.setMiddleWareIdNull(false);
  }

  /**
   * Get middleWareId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isMiddleWareIdSetted() {
    return this.middleWareIdSetted;
  }

  /** Set middleWareId Null */
  public final void setMiddleWareIdNull() {

    this.middleWareIdNull = true;
  }

  public final void setMiddleWareIdNull(boolean aNullFlag) {

    this.middleWareIdNull = aNullFlag;
  }

  public final boolean isMiddleWareIdNull() {

    return this.middleWareIdNull;
  }

  private long projectId;

  /** Attribute projectId Be Seted Falg */
  private boolean projectIdSetted = false;

  /** Attribute projectId is Null Falg */
  private boolean projectIdNull = false;

  /**
   * Get projectId
   *
   * @return long
   */
  public final long getProjectId() {

    return projectId;
  }

  /**
   * Set projectId
   *
   * @param long
   */
  public final void setProjectId(long projectId) {

    this.projectId = projectId;

    this.projectIdSetted = true;

    this.setProjectIdNull(false);
  }

  /**
   * Get projectId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isProjectIdSetted() {
    return this.projectIdSetted;
  }

  /** Set projectId Null */
  public final void setProjectIdNull() {

    this.projectIdNull = true;
  }

  public final void setProjectIdNull(boolean aNullFlag) {

    this.projectIdNull = aNullFlag;
  }

  public final boolean isProjectIdNull() {

    return this.projectIdNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String serverType;

  /** Attribute serverType Be Seted Falg */
  private boolean serverTypeSetted = false;

  /**
   * Get serverType
   *
   * @return String
   */
  public final String getServerType() {

    return serverType;
  }

  /**
   * Set serverType
   *
   * @param String
   */
  public final void setServerType(String serverType) {

    this.serverType = StringUtils.trim(serverType);

    this.serverTypeSetted = true;
  }

  /**
   * Get serverType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isServerTypeSetted() {
    return this.serverTypeSetted;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProjectServerRelate) == false) {
      return false;
    }
    ProjectServerRelate other = (ProjectServerRelate) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("middleWareId=");
    buffer.append(this.middleWareId);

    buffer.append("projectId=");
    buffer.append(this.projectId);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("serverType=");
    buffer.append(this.serverType);

    buffer.append("]");

    return buffer.toString();
  }
}
